package com.example.kt_base.s6

//TODO 102.Kotlin语言的接口的默认值实现

interface Iusb2{
    val usbVersionInfo:String
        get() =(1..100).shuffled().last().toString()
    val usbInsertDevice:String
}

class KeyBorad2() : Iusb2 {
    override val usbInsertDevice: String
        get() {
          return "usb3.2"
        }
    override val usbVersionInfo: String
        get() = super.usbVersionInfo
}
fun main() {
    println(KeyBorad2().usbVersionInfo)

}
